{% extends "index.html" %}

{% block title %}pycite - bookmarks{% endblock %}

{% block sidebar %}
<div class='tagbox'>
<b>Tags</b><br/>
	{% if tags %}
	{% for tag in tags %}
<div class='tag'><a href='{% if filter_user %}/users/{{ filter_user }}{% endif %}/tags/{{ tag|urlencode }}'>{{ tag }}</a></div>
	{% endfor %}
	{% else %}
<i>None to show yet</i>
	{% endif %}
</div>
{% endblock %}

{% block content %}
	{% for bookmark in bookmarks %}
	<div class='bookmark'>
		{% if bookmark.tags %}
		<div class='tags'>
		{% for tag in bookmark.tags %}
		<div class='tag'><a href='{% if filter_user %}/users/{{ filter_user }}{% endif %}/tags/{{ tag|urlencode }}'>{{ tag }}</a></div>
		{% endfor %}
		</div>
		{% endif %}
		
		<div class='description'>
		<div class='title'><a href='{{ bookmark.uri }}'>{{ bookmark.title }}</a> {% if bookmark.favicon %}<img align='absmiddle' src='{{ bookmark.favicon }}' height='16' width='16'/> {% endif %}</div>
		<div class='info'>bookmarked by <a href='/users/{{ bookmark.owner_alias }}'>{{ bookmark.owner_alias }}</a> on {{ bookmark.date_added }}</div>
		{% if bookmark.authorString %}
		<div class='authors'>{{ bookmark.authorString }}</div>
		{% endif %}
		{% if bookmark.journalString %}
		<div class='journal'>{{ bookmark.journalString }}</div>
		{% endif %}
		{% if bookmark.description %}
		<div class='description'>"{{ bookmark.description }}"</div>
		{% endif %}
		</div>
		
		<div class='clear_both'>&nbsp;</div>
	</div>
	{% endfor %}
{% endblock %}
